package top.abrsm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: Wuzh
 * @Description: 抽象基础类, 所有entity的基类，用于传参
 * @Data:
 */
@Data
public abstract class BaseEntity implements Serializable {

    /**
     * 页码
     */
    @TableField ( exist = false )
    private int pageNum = 1;

    /**
     * 每页条数
     */
    @TableField ( exist = false )
    private int pageSize = 10;


    /**
     * 返回给前端的token，不存数据库
     */
    @TableField ( exist = false )
    private String token;


    @TableField ( exist = false )
    private String partitionName; // mysql分区名称
}